package cn.edu.ctbu.datajpa01.service.impl;

import cn.edu.ctbu.datajpa01.domain.Admin;
import cn.edu.ctbu.datajpa01.repository.AdminRepository;
import cn.edu.ctbu.datajpa01.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminImplService implements AdminService {

    @Autowired
    AdminRepository adminRepository;

    public List<Admin> findByAuserAndApassword(String auser, String apassword){
        return adminRepository.findByAuserAndApassword(auser,apassword);}

}